<table class="table" width="100%" border="0">
    <thead>
        <tr>
            <th>准开发需求编号</th>
            <th>条线</th>
            <th>实施方式</th>
            <th>阶段</th>
            <th>开始时间</th>
            <th>结束时间</th>
            <th>修改时间</th>
            <th>修改人</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    {{for obj in objects:}}
        <tr>
            <td>{{=obj.requirement.req_id}}</td>
            <td>{{=obj.tx.name}}</td>
            <td>{{=obj.get_display_value('mode')}}</td>
            <td>{{=(stage and stage[index]) or ''}}</td>
            <td>{{=obj.field_str(obj.begin_date)}}</td>
            <td>{{=obj.field_str(obj.end_date)}}</td>
            <td>{{=obj.field_str(obj.modified_date)}}</td>
            <td>{{=obj.modified_user.username}}</td>
            <td>
            {{if object.can_modified(request.user):}}
            <a href="/requirements/details/{{=obj.id}}/edit">修改</a>
            {{pass}}
            </td>
        </tr>
        {{index+=1}}
    {{pass}}
    </tbody>
</ul>
